body {
    font-size: .2133rem;
    background-color: #f5f5f5;
}

:root {
    --active-color: #ff6e0c
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

a {
    text-decoration: none;
    color: #000;
}

li {
    list-style-type: none;
}

.container {
    width: 750px;
    margin: auto;
    margin-bottom: 1.3333rem;
}

.header {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.logo {
    display: inline-block;
    width: 60px;
    height: 45.9975px;
    background: url(../images/logo.png) no-repeat center/contain;
}

.search {
    width: 542.0025px;
    height: 68.0025px;
    outline: none;
    border: .9975px solid #ccc;
    padding-left: 60px;
    background: #fff url(../images/search.png) no-repeat left center/contain;
}

.user {
    display: inline-block;
    width: 38.0025px;
    height: 50.0025px;
    background: url(../images/mine.png) no-repeat center/contain;

}

/* 导航 */
.nav {
    margin-top: 20.0025px;
}

.nav a {
    color: #8d8d8d;
    display: inline-block;
    line-height: 2;
    margin-left: 20.0025px;
}

.nav a.active {
    color: var(--active-color);
    border-bottom: 3.9975px solid var(--active-color);
}

/* 轮播图区域 */
.slider {
    margin-top: 2.0025px;
    position: relative;
}

.slider img {
    width: 100%;
}

.indicator {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 20.0025px;
    display: flex;
}

.indicator li {
    margin: 0 9.9975px;
    width: 20.0025px;
    height: 20.0025px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
}

.indicator li.active {
    background-color: rgba(255, 255, 255, .8);
}

/* 宫格导航 */
.grid {
    width: 750px;
    height: 330px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(2, 1fr);
}

.grid-item {
    text-align: center;
    background-color: #fff;
}

.grid-item img {
    width: 100%;
}

.goods {
    display: flex;
    justify-content: space-between;
}

.goods a {
    display: inline-block;
}

.goods>a>img {
    width: 374.0025px;
    height: 528px;
}

.goods>div {
    width: 369.9975px;
}

.goods>div img {
    width: 100%;
}

.goods-link {
    margin-top: 9.9975px;
    display: inline-block;
    width: 750px;
}

.goods-link img {
    width: 100%;
}

/* 底部导航 */
.tabbar {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    width: 10rem;
    height: 1.3333rem;
    justify-content: space-around;
    background-color: #fff;
}

.tabbar a {
    width: 1.0667rem;
    height: 1.0667rem;
    display: inline-block;
    text-align: center;
    padding-top: .9333rem;
}

.tabbar a:hover {
    color: var(--active-color)
}

.tabbar a:nth-child(1) {
    background: url(../images/home.png) no-repeat center/60%;
}

.tabbar a:nth-child(1):hover {
    background-image: url(../images/home-check.png);
}

.tabbar a:nth-child(2) {
    background: url(../images/classify.png) no-repeat center/60%;
}

.tabbar a:nth-child(2):hover {
    background-image: url(../images/classify-check.png);
}

.tabbar a:nth-child(3) {
    background: url(../images/shopcar.png) no-repeat center/60%;
}

.tabbar a:nth-child(3):hover {
    background-image: url(../images/shopcar-check.png);
}

.tabbar a:nth-child(4) {
    background: url(../images/mine.png) no-repeat center/60%;
}

.tabbar a:nth-child(4):hover {
    background-image: url(../images/mine-check.png);
}